package com.erp.erp_servers.Inquiry.imp;

import com.erp.erp_dao.Inquiry.IInquiryProductDAO;
import com.erp.erp_dao.Inquiry.IInquiryRecordDAO;
import com.erp.erp_entitys.Inquiry.InquiryProductEntity;
import com.erp.erp_servers.Inquiry.IInquiryProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImpInquiryProductService implements IInquiryProductService {
    @Autowired
    private IInquiryProductDAO inquiryProductDAO;
    @Autowired
    private IInquiryRecordDAO inquiryRecordDAO;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return inquiryProductDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(InquiryProductEntity record) {
        return inquiryProductDAO.insert(record);
    }

    @Override
    public int insertSelective(InquiryProductEntity record) {
        return inquiryProductDAO.insertSelective(record);
    }

    @Override
    public InquiryProductEntity selectByPrimaryKey(Integer id) {
        return inquiryProductDAO.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(InquiryProductEntity record) {
        return inquiryProductDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(InquiryProductEntity record) {
        return inquiryProductDAO.updateByPrimaryKey(record);
    }

    @Override
    public List<InquiryProductEntity> selectProductByInId(Integer inId) {
        return inquiryProductDAO.selectProductByInId(inId);
    }

}
